<?php get_header();?>

<div id="items">
	<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
        <div class="item">
        <div class="background"></div> 
        <a href="<?php the_permalink(); ?>" Title="<?php the_title() ?>">
			<img src="<?php  $key="poster"; echo get_post_meta($post->ID, $key, true); ?>" alt="<?php the_title() ?>"/>
		</a>      
        <div class="content">
        <h2><a href="<?php the_permalink(); ?>"><?php the_title() ?></a></h2>
        <p><?php the_content(''); ?> </p>
        </div>
        <div class="comments-link">
        <p><a href="<?php the_permalink() ?>#comments" title="Comment on This Trailer"><?php comments_number('0', '1', '%'); ?></a></p>
        </div>
        </div>
    <?php endwhile; else: ?>
    <?php endif; ?>
    <div id="navi"><?php next_posts_link('<span class="navforward"></span>') ?><?php previous_posts_link('<span class="navback"></span>') ?></div>
</div>

<?php get_sidebar(); ?>

<?php get_footer(); ?>